<?php
//随机推荐产品插件
require '../global.php';

$db = &getDB();
$id = $db->GetOne(getTable('items'), 'id', "issale=1 and price1>20 ORDER BY rand()");

status_header(301);
header("location:/$id");
?>
